package com.study.business.interview.mapper;

import com.study.business.interview.domain.Interview;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zhang
 */
public interface InterviewMapper {
    /**
     * 添加面试题
     *
     * @param interview
     * @return
     */
    int add(Interview interview);

    /**
     * 删除面试题
     *
     * @param id
     * @return
     */
    boolean deleteById(Integer id);

    /**
     * 分页获取面试题
     *
     * @param pageSize
     * @param start
     * @return
     */
    List<Interview> getAll(@Param("pageSize") int pageSize, @Param("start") int start);
}
